package com.edu.bean;

import java.util.List;

public class Book {
    private int bookId;
    private  String bookName;
    private int writerId;
    private  String bookType;
    private  int pressId;
    private List<Writer> writerList;
    //11题的这个应该是 private Press press;一本书只有一个出版社
    private  List<Press> pressList;

    public List<Writer> getWriterList() {
        return writerList;
    }

    public void setWriterList(List<Writer> writerList) {
        this.writerList = writerList;
    }

    public List<Press> getPressList() {
        return pressList;
    }

    public void setPressList(List<Press> pressList) {
        this.pressList = pressList;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getWriterId() {
        return writerId;
    }

    public void setWriterId(int writerId) {
        this.writerId = writerId;
    }

    public String getBookType() {
        return bookType;
    }

    public void setBookType(String bookType) {
        this.bookType = bookType;
    }

    public int getPressId() {
        return pressId;
    }

    public void setPressId(int pressId) {
        this.pressId = pressId;
    }

    @Override
    public String toString() {
        return "book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", writerId=" + writerId +
                ", bookType='" + bookType + '\'' +
                ", pressId=" + pressId +
                '}';
    }
}
